Skip to content

we used to have two path for rendering a frame#2028

Merged
doutriaux1 merged 3 commits intomasterfrom
issue_1845_animation_cmap_not_preserved
Jun 22, 2016
Merged

we used to have two path for rendering a frame#2028
doutriaux1 merged 3 commits intomasterfrom
issue_1845_animation_cmap_not_preserved

Conversation

@doutriaux1
Copy link
Copy Markdown
Contributor

@doutriaux1 doutriaux1 commented Jun 14, 2016

the one saving pngs was broken and not preserving pngs
two paths are now unified
this also fixes zoom on animations.
fix #1845


This change is Reviewable

the one saving pngs was broken and not preserving pngs
two paths are now unified
this also fixes zoom on animations.
fix #1845
@doutriaux1
Copy link
Copy Markdown
Contributor Author

@aashish24 @chaosphere2112

@doutriaux1
Copy link
Copy Markdown
Contributor Author

@danlipsa

@aashish24
Copy link
Copy Markdown
Contributor

How do we test it @doutriaux1 ?

@doutriaux1
Copy link
Copy Markdown
Contributor Author

import vcs
import cdms2
import os

f=cdms2.open(os.path.join(vcs.sample_data,"clt.nc"))
s=f("clt",slice(0,12))

x=vcs.init(geometry=(800,600))
x.colormap = "AMIP" 
x.plot(s)       
x.animate.create(thread_it=1)
x.animate.zoom(2)
#x.animate.run()
raw_input("Press enter")
x.animate.save("crap.mp4")

@danlipsa
Copy link
Copy Markdown
Contributor

@doutriaux1 Do we have a test that failed before and passes with this change?

@doutriaux1
Copy link
Copy Markdown
Contributor Author

nope. and animation testing are such a pain... I guess we could edit all of our exisiting animation test and force them to have a different colormap.

@danlipsa
Copy link
Copy Markdown
Contributor

@doutriaux1 Probably its enough if you only change one. If its easy to do it may be worth it - if not, its fine.

@aashish24
Copy link
Copy Markdown
Contributor

LGTM 👍 but I didn't run testing.

@aashish24
Copy link
Copy Markdown
Contributor

@doutriaux1 @danlipsa can we merge this now?

@doutriaux1 doutriaux1 merged commit 9369abf into master Jun 22, 2016
@doutriaux1 doutriaux1 deleted the issue_1845_animation_cmap_not_preserved branch June 22, 2016 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

animation save does not preserve the colormap

3 participants